package study.saas.order.facade.impl;


import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;
import study.saas.common.viewmodel.ApiResultV2;

import study.saas.common.viewmodel.PageModel;
import study.saas.order.entity.Orderr;
import study.saas.order.service.OrderFacade;
import study.saas.order.service.OrderService;
import study.saas.order.service.model.OrderCreateDTO;
import study.saas.order.service.model.OrderFilterDTO;
import study.saas.order.service.model.OrderModifyDTO;

import javax.annotation.Resource;
import java.util.List;

@Component("orderFacade")
@Service(version = "1.0.0")
public class OrderFacadelmpl implements OrderFacade {

    @Resource
    private OrderService service;


    @Override
    public ApiResultV2<Orderr> get(Integer orderId) {
        return service.get(orderId);
    }

    @Override
    public ApiResultV2 create(OrderCreateDTO create) {
        return service.create(create);
    }

    @Override
    public ApiResultV2 modify(OrderModifyDTO modify) {
        return service.modify(modify);
    }

    @Override
    public ApiResultV2 delete(Integer orderId) {
        return service.delete(orderId);
    }

    @Override
    public ApiResultV2<PageModel<Orderr>> list(OrderFilterDTO filter) {
        return service.list(filter);
    }

    @Override
    public Orderr findOne(Integer id) {
        return null;
    }

    @Override
    public Orderr save(Orderr entity) {
        return null;
    }

    @Override
    public List<Orderr> save(List<Orderr> entityList) {
        return null;
    }

    @Override
    public void deleteById(Integer id) {

    }
}
